﻿using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;

namespace Project.Infrastructure.Migrations
{
    public partial class enumtest : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "Project",
                nullable: false,
                defaultValue: new DateTime(2018, 5, 13, 14, 28, 10, 342, DateTimeKind.Local),
                oldClrType: typeof(DateTime),
                oldDefaultValue: new DateTime(2018, 5, 9, 10, 57, 0, 88, DateTimeKind.Local));

            migrationBuilder.CreateTable(
                name: "BelongTo",
                columns: table => new
                {
                    Id = table.Column<int>(nullable: false, defaultValue: 1),
                    Name = table.Column<string>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_BelongTo", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "BelongTo");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "Project",
                nullable: false,
                defaultValue: new DateTime(2018, 5, 9, 10, 57, 0, 88, DateTimeKind.Local),
                oldClrType: typeof(DateTime),
                oldDefaultValue: new DateTime(2018, 5, 13, 14, 28, 10, 342, DateTimeKind.Local));
        }
    }
}
